<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Inquiry.aspx.cs" Inherits="Search_Enquiry" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>发送询价</title>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link href="../Templates/B2B/css/comm.css" rel="stylesheet" type="text/css" />
<link href="../Templates/B2B/css/channels.css" rel="stylesheet" type="text/css" />
<script src="../Templates/B2B/js/jquery.js" type="text/javascript"></script>
<script src="../js/jquery-exchange.js" type="text/javascript"></script>
<script src="../js/ScrollText.js" type="text/javascript"></script>
<script src="../js/Compare.js" type="text/javascript"></script>
<script src="../js/Page.js" type="text/javascript"></script>
</head>
<body>
<%=_headStr%>
<div class="cot">
	<div class="top2">
		<div class="xtlt mar_top">
			<p class="logo2"><a title="商记" href="#"><img alt="商记" src="../images/logo.gif" /></a></p>
			<p class="lline"></p>
			<p class="xtit">
				<b class="zi1">询价信息</b>
				<span class="zi2"><%=minoStr.Trim('，') %></span>
			</p>
		</div>
		<div class="xsos">
			<div class="xso">
				<ul class="xsot" id="so">
					<li class="xsotli2" id="供应">供应</li>
					<li class="xsotli2" id="求购">求购</li>
					<li class="xsotli1" id="企业">企业</li>
					<li class="xsotli2" id="资讯">资讯</li>
				</ul>
				<div class="xsocot">
					<p class="xsoclt"></p>
					<div class="xsocnr">
						<input  name="keyword" id="keyword" type="text" class="soout" onblur="if(this.value==''||this.value=='请输入搜索内容'){this.value='请输入搜索内容';this.className='soout';}" onfocus="if(this.value=='请输入搜索内容'){this.value='';this.className='soon';}" value="请输入搜索内容" style="width:260px;" />
					</div>
					<p class="socan"><a title="点击搜索" href="javascript:void(0)" onclick="minosearch()" ><img alt="搜索" src="../images/so-an.gif" /></a></p>
				</div>
			</div>
		</div>
	</div>
	<p class="xbot"></p>
</div>
<form id="Form1" action="" runat="server">
<div class="cot">
	<p class="sps2t mar_top">
		<strong>询价接收方<i class="tlt"></i><i class="trt"></i></strong>
	</p>
	<div class="sps2nr">
<%--		<table cellpadding="0" cellspacing="0" border="0" class="tbqu">
			<tr>
				<td width="18%" class="tblt">接收方</td>
				<td>共1条信息</td>
			</tr>
			<tr>
				<td class="tblt">&nbsp;</td>
				<td>1、供应CA3639G08款雅阁专车专用机</td>
			</tr>
		</table>--%>
		                <asp:Table ID="TblDirList" runat="server" Width="100%" CellPadding="0" CellSpacing="0"
                    CssClass="table_list">
                </asp:Table>
	</div>
</div>
<div class="cot">
	<p class="sps2t mar_top">
		<strong>填写留言信息<i class="tlt"></i><i class="trt"></i></strong>
	</p>
	<div class="sps2nr">
                    <asp:HiddenField ID="strTypeID" runat="server" Value="258005914,349033473,141339803,153403547" />
		<table cellpadding="0" cellspacing="0" border="0" class="tbqu">
			<tr>
				<td width="18%" class="tblt">询价标题</td>
				<td><asp:TextBox ID="txtTitle" runat="server" Width="260" CssClass="lgout"></asp:TextBox></td>
			</tr>
			<tr>
				<td class="tblt">订货总量</td>
				<td><asp:TextBox ID="txtCount" runat="server" style="width:160px;" CssClass="lgout"></asp:TextBox></td>
			</tr>
			<tr>
				<td colspan="2" class="tbce">我想了解的产品信息有： </td>
			</tr>
			<tr>
	                        <td colspan="2" class="tbce">
                            <asp:CheckBoxList ID="chkConsult" runat="server" RepeatColumns="8" RepeatLayout="Flow" >
                                <asp:ListItem>单价</asp:ListItem>
                                <asp:ListItem>产品规格、型号</asp:ListItem>
                                <asp:ListItem>原产地</asp:ListItem>
                                <asp:ListItem>最小订货量</asp:ListItem>
                                <asp:ListItem>交货期</asp:ListItem>
                                <asp:ListItem>供货能力</asp:ListItem>
                                <asp:ListItem>包装方式</asp:ListItem>
                                <asp:ListItem>质量/安全认证</asp:ListItem>
                            </asp:CheckBoxList></td>
			</tr>
			<tr>
				<td class="tblt">期望价格</td>
				<td><asp:TextBox ID="txtPrice" runat="server"  style="width:160px;" CssClass="lgout"></asp:TextBox> 元</td>
			</tr>
			<tr>
				<td class="tblt">补充信息</td>
				<td>
				<textarea id="txtDetail" cols="100" rows="6" class="c" name="Info" runat="server" CssClass="lgout"  style=" width:600px; height:75px;">您好，我对您的产品信息很感兴趣，请给我更详细的产品资料，谢谢！</textarea>
				
				</td>
			</tr>
		</table>
		<div class="sps2cn1 mar_top2">
			<asp:Button ID="Button1" runat="server" Text="发送询价单" OnClick="Button1_Click" />
                    <asp:Label ID="lblMessage" ForeColor="red" Visible="false" runat="server"></asp:Label>
		</div>
	</div>
</div>
</form>
</body>
<script type="text/javascript">
    jQuery(document).ready(function() {
        jQuery("#so").find("li").mouseover(function() {
            jQuery("#so").find("li").removeClass().addClass("xsotli2");
            jQuery(this).removeClass().addClass("xsotli1");
        });
    });
    function minosearch() {
        var type = document.getElementById('so').getElementsByTagName("li");
        var typename = "";
        var keyword = document.getElementById('keyword').value;
        for (var i = 0; i < type.length; i++) {
            if (type[i].className == 'xsotli1') {
                typename = type[i].id;
            }
        }
        if (typename == "供应") {
            if (keyword != "" && keyword != '请输入搜索内容') {
                window.location.href = '../supply/trade.aspx?keyword=' + escape(keyword) + '';
            }
        }
        if (typename == "求购") {
            if (keyword != "" && keyword != '请输入搜索内容') {
                window.location.href = '../purchase/trade.aspx?keyword=' + escape(keyword) + '';
            }
        }
        if (typename == "企业") {
            if (keyword != "" && keyword != '请输入搜索内容') {
                window.location.href = '../company/trade.aspx?keyword=' + escape(keyword) + '';
            }
        }
        if (typename == "资讯") {

        }
    }
</script>
</html>